﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="RateComments.aspx.vb" Inherits="task3.Ratecomments" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <asp:Label ID="Label1" runat="server" Text="Label" Font-Bold="True" 
        Font-Underline="True"></asp:Label>
    &nbsp;<asp:Rating ID="Rating2" runat="server" EmptyStarCssClass="empty" 
        FilledStarCssClass="smiley-done" StarCssClass="smiley" 
        WaitingStarCssClass="empty" AutoPostBack="True">
    </asp:Rating>
    <br />
    <br />
    <br />

    <asp:ListView ID="ListView1" runat="server" DataKeyNames="ID" 
        DataSourceID="AccessDataSource1">
        <ItemTemplate>
            <span style="">
            Dealname:
            <asp:Label ID="DealnameLabel" runat="server" Text='<%# Eval("Dealname") %>' />
            <br />
            DealDescription: <br />
            <asp:Label ID="DealDescriptionLabel" runat="server" 
                Text='<%# Eval("DealDescription") %>' />
            <br />
            <img src="<%# Eval("Thumbnail") %>" />

            <br />
<br /></span>
        </ItemTemplate>
    </asp:ListView>
    <p>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
            DataFile="~/App_Data/DealsDb.accdb" 
            SelectCommand="SELECT [ID], [Dealname], [DealDescription], [Thumbnail] FROM [DealDetail] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" DefaultValue="1" />
            </SelectParameters>
        </asp:AccessDataSource>
    </p>
</asp:Content>
